if(navigator.appName == "Netscape")
{
    document.write('<layer id="clock"></layer>');
}
if (navigator.appVersion.indexOf("MSIE") != -1)
{
    document.write('<span id="clock"></span>');
}
function upclock()
{
    var today = new Date();
    var month = today.getMonth() + 1
    var day = today.getDate()
    var year = today.getFullYear()
    var hrs = today.getHours();
    var min = today.getMinutes();
    var sec = today.getSeconds();
    var col = ":";
    var spc = " ";
    var apm;
    var dte = "-";
    if (min<=9) min="0"+min;
    if (sec<=9) sec="0"+sec;
    if(navigator.appName == "Netscape")
    {
        document.clock.document.write(year+dte+month+dte+day+spc+spc+hrs+col+min+col+sec+spc);
        document.clock.document.close();
    }
    if (navigator.appVersion.indexOf("MSIE") != -1)
    {
        clock.innerHTML = year+dte+month+dte+day+spc+spc+hrs+col+min+col+sec+spc;
    }
}
upclock();
setInterval("upclock()",1000);
